﻿using System;
using System.Collections.Generic;

using System.Web;

/// <summary>
/// Summary description for productBV_PV
/// </summary>
namespace Bestlife.ERP.BusinessRules
{
    public class productBV_PV
    {
        public productBV_PV()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public static Boolean pvbv(Bestlife.ERP.Entities.product pro, string user)//insert
        {
            return Bestlife.ERP.DataAccess.product.insertproduct(pro, user);
        }

        public static Boolean insert(Bestlife.ERP.Entities.product pro,string user)//update
        {
            return Bestlife.ERP.DataAccess.product.update(pro,user);
        }

        public static Boolean insertimage(string[] imageList,string proid)//insert image
        {
            return Bestlife.ERP.DataAccess.product.image(imageList,proid);
        }

      

        public static Boolean statuschak()
        {
            return Bestlife.ERP.DataAccess.product.status();
        }

        public static string contactperson(string sup)
        {
            return Bestlife.ERP.DataAccess.product.contctperson(sup);
        }//Get Supplier Contac Details

        public static decimal productprice(string name)
        {
            return Bestlife.ERP.DataAccess.product.pro_price(name);
        }//Get Product Price

        //public static List<string> subcat(string category)
        //{
        //    return Bestlife.ERP.DataAccess.product.catsub(category);
        //}// Get Sub categories according to Category

        public static decimal setdisprice(decimal cost, decimal mark_price)
        {
            return Bestlife.ERP.DataAccess.product.setdisprice(cost, mark_price);
        }

        public static decimal setBV(decimal cost, decimal Disprice)
        {
            return Bestlife.ERP.DataAccess.product.setBV(cost, Disprice);
        }

        public static decimal setPV(decimal cost, decimal Disprice)
        {
            return Bestlife.ERP.DataAccess.product.setPV(cost, Disprice);
        }
        public static Boolean insertpvbv(decimal cost, decimal mark_price, string proid,string user)
        {
            return Bestlife.ERP.DataAccess.product.insertpvbv(cost, mark_price, proid,user);
        }

        public static int lastproid()
        {
            return Bestlife.ERP.DataAccess.product.lastproid();
        }
    }
}